{% extends 'base/base.html' %}

{% block title %}
    文章
{% endblock %}

{% block css %}
    <link rel="stylesheet" href="/static/ckeditor/ckeditor.css">
{% endblock %}

{% block main %}
    <form action="" method="post">
        {% csrf_token %}


        <ul class="list-group">
            <li class="list-group-item">{{ form.title.label_tag }}
                {{ form.title }}</li>
            <li class="list-group-item">{{ form.text.label_tag|safe }}
                {{ form.text|safe }}</li>
            <li class="list-group-item">{{ form.categorizes.label_tag }}
                {{ form.categorizes }}</li>
            <li class="list-group-item">{{ form.tags.label_tag }}
                {{ form.tags }}</li>

        </ul>

        <button class="btn btn-success" type="submit">提交</button>
    </form>

    {% block js %}
        <script src="/static/ckeditor/ckeditor-init.js"></script>
        <script src="/static/ckeditor/ckeditor/ckeditor.js"></script>
        <script src="/static/ckeditor/fixups.js"></script>

    {% endblock %}

{% endblock %}